﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Comm.Crypt
{
    /// <summary>
    /// 方案加解密接口
    /// </summary>
    public interface ICrypt
    {
        /// <summary>
        /// 加密
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        byte[] Encrypt(byte[] data);

        /// <summary>
        /// 解密
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        byte[] Decrypt(byte[] data);
    }
}
